package com.dong.webtest;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;


/**
 * @author dengxiudong
 * @Date 2024/9/24 上午11:28
 */
@Data
public class User
{
    @NotBlank(message = "name cannot be null")
    private String name;
    @Min(value = 18, message = "age cannot be less than 18")
    private Integer age;
}
